package org.example.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import cn.hutool.extra.qrcode.QrConfig;

import java.awt.*;

@Configuration
public class QrCode {



    /*
    * 配置二维码，将其交予SpringBoot保管
    * */
        @Bean
        public QrConfig qrConfig(){
            QrConfig qrConfig = new QrConfig();
            qrConfig.setBackColor(Color.white.getRGB());
            qrConfig.setForeColor(Color.black.getRGB());
            return qrConfig;
        }
}
